//
//  ViewController.swift
//  AFNetWorkingTools
//
//  Created by 简康达 on 16/5/13.
//  Copyright © 2016年 JKD. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        NetworkTools.shareIntance.request(.POST, URLString: "http://httpbin.org/post", parameters:["name":"JKD","age":18]) { (result, error) in
            if error != nil{
                print(error)
            }
            print(result)
        }
    }
}

